DiGrande.it
Braille and Technologies for Visual Impairment

StringLeft- Returns a substring from the left side of the string

Function that returns the substring of the specified length from the left part of the string.

- StringLeft(S,N): string

Parameters:

- (string) S: String from which the substring is to be copy;

- (int) N: Number of characters to be taken from the left side of the string.

Description:

Use the StringLeft function to copy N characters of the left part of the string S. The instruction is a facilitation, which can also be obtained with the StringCopy instruction.

Examples:

// Create a string variable

S = "Biblos"

// Returns the first three characters of the string S

T = StringLeft(S,3)

// The variable T contains the string: Bib

MsgBox(T)